package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.InitializationDTO;
import com.arpa.wms.domain.entity.Initialization;
import com.arpa.wms.domain.vo.InitializationVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 期初 Mapper 接口
 * @author jinss
 * @date 2020-09-24 14:10:16
 **/
public interface InitializationMapper extends BaseMapper<Initialization> {

    /**
     * 查询列表
     * @param initializationDTO
     * @return
     */
    List<InitializationVO> queryList(InitializationDTO initializationDTO);

    List<String> queryByGoodsCode(@Param("list")List<String> list);

    /**
     * 查询合计,包含总数
     * @param initializationDTO
     * @return
     */
    InitializationVO queryListSum(InitializationDTO initializationDTO);

    /**
     * 更新 期初单 数量
     * @param code
     * @return
     */
    int updateInitializationByCode(@Param("code") String code,@Param("status") String status);
}
